package com.py.framework.scheduler.entity;

import java.sql.Timestamp;

import org.apache.commons.lang.builder.ReflectionToStringBuilder;

/**
 * 任务详情实体
 * @author Leegern
 * @date   2018年5月7日
 */
public class TaskEntity {

	/** 主键 **/
	private long id;
	/** 任务名称 **/
	private String taskName;
	/** 任务描述 **/
	private String taskDesc;
	/** 任务调用地址 **/
	private String taskUrl;
	/** 所属系统ID **/
	private long menuId;
	/** CRON表达式 **/
	private String cronExp;
	/** 任务状态，1：开启，2：停用 **/
	private int taskStatus;
	/** 创建时间 **/
	private Timestamp createTime;
	/** 更新时间 **/
	private Timestamp updateTime;
	/** 删除标识，1：否，2：是 **/
	private int delFlag;
	/** 更新标识，1：否，2：是 **/
	private int updFlag;
	
	/** 系统名称 **/
	private String sysName;
	/** 系统地址 **/
	private String sysAddr;
	
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return ReflectionToStringBuilder.toString(this);
	}
	
	/**
	 * @return the taskName
	 */
	public String getTaskName() {
		return taskName;
	}
	/**
	 * @param taskName the taskName to set
	 */
	public void setTaskName(String taskName) {
		this.taskName = taskName;
	}
	/**
	 * @return the taskDesc
	 */
	public String getTaskDesc() {
		return taskDesc;
	}
	/**
	 * @param taskDesc the taskDesc to set
	 */
	public void setTaskDesc(String taskDesc) {
		this.taskDesc = taskDesc;
	}
	/**
	 * @return the taskUrl
	 */
	public String getTaskUrl() {
		return taskUrl;
	}
	/**
	 * @param taskUrl the taskUrl to set
	 */
	public void setTaskUrl(String taskUrl) {
		this.taskUrl = taskUrl;
	}
	/**
	 * @return the menuId
	 */
	public long getMenuId() {
		return menuId;
	}
	/**
	 * @param menuId the menuId to set
	 */
	public void setMenuId(long menuId) {
		this.menuId = menuId;
	}
	/**
	 * @return the cronExp
	 */
	public String getCronExp() {
		return cronExp;
	}
	/**
	 * @param cronExp the cronExp to set
	 */
	public void setCronExp(String cronExp) {
		this.cronExp = cronExp;
	}
	/**
	 * @return the taskStatus
	 */
	public int getTaskStatus() {
		return taskStatus;
	}
	/**
	 * @param taskStatus the taskStatus to set
	 */
	public void setTaskStatus(int taskStatus) {
		this.taskStatus = taskStatus;
	}
	/**
	 * @return the sysName
	 */
	public String getSysName() {
		return sysName;
	}
	/**
	 * @param sysName the sysName to set
	 */
	public void setSysName(String sysName) {
		this.sysName = sysName;
	}
	/**
	 * @return the sysAddr
	 */
	public String getSysAddr() {
		return sysAddr;
	}
	/**
	 * @param sysAddr the sysAddr to set
	 */
	public void setSysAddr(String sysAddr) {
		this.sysAddr = sysAddr;
	}
	/**
	 * @return the id
	 */
	public long getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(long id) {
		this.id = id;
	}
	/**
	 * @return the createTime
	 */
	public Timestamp getCreateTime() {
		return createTime;
	}
	/**
	 * @param createTime the createTime to set
	 */
	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}
	/**
	 * @return the updateTime
	 */
	public Timestamp getUpdateTime() {
		return updateTime;
	}
	/**
	 * @param updateTime the updateTime to set
	 */
	public void setUpdateTime(Timestamp updateTime) {
		this.updateTime = updateTime;
	}
	/**
	 * @return the delFlag
	 */
	public int getDelFlag() {
		return delFlag;
	}
	/**
	 * @param delFlag the delFlag to set
	 */
	public void setDelFlag(int delFlag) {
		this.delFlag = delFlag;
	}
	/**
	 * @return the updFlag
	 */
	public int getUpdFlag() {
		return updFlag;
	}
	/**
	 * @param updFlag the updFlag to set
	 */
	public void setUpdFlag(int updFlag) {
		this.updFlag = updFlag;
	}
}